<?php $form = $this->beginWidget('CActiveForm', array(
	'id' => 'actionactivity-search-form',
	'method' => 'get',
	'action' => app()->createAbsoluteUrl('systemlog/actionactivity'),
	'enableClientValidation' => true,
	'clientOptions' => array(
		'validateOnSubmit' => true,
	),
)); $form = new CActiveForm(); ?>
	<div class="row-fluid">
		<?php echo CHtml::tag('strong', array(), $actionActivitySearchForm->getFieldLabel('conditionVal')); ?><br />
		<?php echo $form->textField($actionActivitySearchForm, 'conditionVal', array('class' => 'fields')); ?>
	</div>
	
	<div class="row-fluid">
		<?php echo CHtml::tag('strong', array(), $actionActivitySearchForm->getFieldLabel('conditionField')); ?><br />
		<?php echo $form->dropDownList($actionActivitySearchForm, 'conditionField', $actionActivitySearchForm->listConditionFields(), array('class' => 'fields')); ?>
	</div>
	
	<div class="row-fluid">
		<?php echo CHtml::tag('strong', array(), $actionActivitySearchForm->getFieldLabel('dateFrom')); ?><br />
		<div data-date="<?php echo date('Y-m-d'); ?>" data-date-format="yyyy-mm-dd" class="input-append date">
			<?php //echo $form->textField($actionActivitySearchForm, 'dateFrom', array('class' => 'span2 fields', 'readonly' => true, 'size' => 16)); ?>
			<?php
				$this->widget('zii.widgets.jui.CJuiDatePicker', array(
				    'model' => $actionActivitySearchForm,
				    'attribute' => 'dateFrom',
				    'options' => array(
				        //'showOn' => 'both',             // also opens with a button
				        'dateFormat' => 'yy-mm-dd',     // format of "2012-12-25"
				        //'showOtherMonths' => true,      // show dates in other months
				        //'selectOtherMonths' => true,    // can seelect dates in other months
				        //'changeYear' => true,           // can change year
				        //'changeMonth' => true,          // can change month
				        //'yearRange' => '2000:2099',     // range of year
				        //'minDate' => '2000-01-01',      // minimum date
				        //'maxDate' => '2099-12-31',      // maximum date
				        //'showButtonPanel' => true,      // show button panel
				    ),
				    'htmlOptions' => array(
				    	'class' => 'span2 fields',
				        'size' => '16',
						'readonly' => true
				    ),
				));
			?>
			<span class="add-on"> <i class="icon-calendar"></i> </span>
		</div>
	</div>
	
	<div class="row-fluid">
		<?php echo CHtml::tag('strong', array(), $actionActivitySearchForm->getFieldLabel('dateTo')); ?><br />
		<div class="input-append date">
			<?php //echo $form->textField($actionActivitySearchForm, 'dateTo', array('class' => 'span2 fields', 'readonly' => true, 'size' => 16)); ?>
			<?php
				$this->widget('zii.widgets.jui.CJuiDatePicker', array(
				    'model' => $actionActivitySearchForm,
				    'attribute' => 'dateTo',
				    'options' => array(
				        //'showOn' => 'both',             // also opens with a button
				        'dateFormat' => 'yy-mm-dd',     // format of "2012-12-25"
				        //'showOtherMonths' => true,      // show dates in other months
				        //'selectOtherMonths' => true,    // can seelect dates in other months
				        //'changeYear' => true,           // can change year
				        //'changeMonth' => true,          // can change month
				        //'yearRange' => '2000:2099',     // range of year
				        //'minDate' => '2000-01-01',      // minimum date
				        //'maxDate' => '2099-12-31',      // maximum date
				        //'showButtonPanel' => true,      // show button panel
				    ),
				    'htmlOptions' => array(
				    	'class' => 'span2 fields',
				        'size' => '16',
						'readonly' => true
				    ),
				));
			?>
			<span class="add-on"> <i class="icon-calendar"></i> </span>
		</div>
	</div>
	
	<button type="submit" class="btn btn-icon btn-primary">
		<i class="icon-search icon-white"></i> <?php echo t('buttons', 'Search Logs'); ?>
	</button>
<?php $this->endWidget(); ?>